﻿@model IEnumerable<BlackBox.Category>
@{
    ViewBag.Title = "Play Game";
}

<div id="play-game">
    @foreach (var Category in Model)
    {
        <div class="category">
            <img src="@Category.categoryimg" alt="Category Image" />          
                <a href="~/Game/Category/@Category.id">  @Category.categorytitle</a>
            <p>@Category.categorydecription</p>
        </div>
    }

    <div class="category">
        <img src="/Images/opengames-logo.jpg" alt="Open Games Image" />
        <a href="~/Game/ListofActiveGames/">Open Games</a>
        <p>Here you can see all open games</p>
    </div>
</div>